//
//  HNightHistoryTableViewCell.m
//  NursingManages
//
//  Created by Zhen Huang on 17/6/21.
//  Copyright © 2017年 huangzhen. All rights reserved.
//

#import "HNightHistoryTableViewCell.h"

@implementation HNightHistoryTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self.contentView addSubview:self.checkDepartLabel];
        [self.contentView addSubview:self.checkerLabel];
        [self.contentView addSubview:self.nurseLabel];
        [self.contentView addSubview:self.checkTimeInterLabel];
        [self.contentView addSubview:self.checkDateLabel];
        
    }
    return self;
}

- (UILabel *)checkDepartLabel
{
    if (!_checkDepartLabel) {
        _checkDepartLabel = [[UILabel alloc]initWithFrame:CGRectMake(10, 10, ScreenWidth - 20, 30)];
        _checkDepartLabel.font = [UIFont systemFontOfSize:16];
    }
    return _checkDepartLabel;
}
- (UILabel *)checkerLabel
{
    if (!_checkerLabel) {
        _checkerLabel = [[UILabel alloc]initWithFrame:CGRectMake( 10, self.checkDepartLabel.bottom , 150, 30)];
        _checkerLabel.font = [UIFont systemFontOfSize:14];
    }
    return _checkerLabel;
}

- (UILabel *)nurseLabel
{
    if (!_nurseLabel) {
        _nurseLabel = [[UILabel alloc]initWithFrame:CGRectMake(ScreenWidth - 160, self.checkDepartLabel.bottom , 150, 30)];
        _nurseLabel.font = [UIFont systemFontOfSize:14];
        _nurseLabel.textAlignment = NSTextAlignmentRight;
    }
    return _nurseLabel;
}
- (UILabel *)checkTimeInterLabel
{
    if (!_checkTimeInterLabel) {
        _checkTimeInterLabel = [[UILabel alloc]initWithFrame:CGRectMake(10, self.nurseLabel.bottom , 150, 30)];
        _checkTimeInterLabel.font = [UIFont systemFontOfSize:14];
    }
    return _checkTimeInterLabel;
}

- (UILabel *)checkDateLabel
{
    if (!_checkDateLabel) {
        _checkDateLabel = [[UILabel alloc]initWithFrame:CGRectMake(ScreenWidth - 205, self.nurseLabel.bottom , 200, 30)];
        _checkDateLabel.font = [UIFont systemFontOfSize:14];
        _checkDateLabel.textAlignment = NSTextAlignmentRight;
    }
    return _checkDateLabel;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
